<?php

namespace App\Models;

use Illuminate\Notifications\Notifiable;    

class Baoliaolike extends Base
{
    use Notifiable;

    protected $connection = 'mysql'; // 指定连接
    public $table='baoliao_like';
    
    public $timestamps = false;

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
    ];

    /**
     * The attributes that should be hidden for serialization.
     *
     * @var array<int, string>
     */
    protected $hidden = [
        
    ];

    /**
     * The attributes that should be cast.
     *
     * @var array<string, string>
     */
    protected $casts = [
        
    ];

    public static function getList($fields = '*')
    {
        $list=self::select($fields)->get()->toArray();
        $data=[];
        foreach ($list as $k => $v) {
            $key="{$v['unique_id']}_{$v['people_id']}";
            $data[$key]=$v;
        }
        return $data;
    }



}
